module("NetWork.Action.BuyGoldSmAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

BuyGoldSmAction = NetCmdActionBase:new()

function BuyGoldSmAction:Action(bytes)
    local BuyGoldSm = require("Protol.groupMessage_pb").BuyGoldSm()
    BuyGoldSm:ParseFromString(bytes)
   
    if BuyGoldSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        UIWinMgr:OpenErrorNotice(BuyGoldSm.code)
        return
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.BuyGoldSm(BuyGoldSm)
end

require("NetWork.NetCmdSet").CmdSet[2018] = BuyGoldSmAction --注册处理对象